package com.xbao.controller;

import com.xbao.service.RuleService;
import com.xbao.core.http.CommRequest;
import com.xbao.core.http.CommResult;
import com.xbao.model.Rule;
import com.xbao.model.req.RuleReq;
import com.xbao.model.req.StuReq;
import com.xbao.model.req.SubjectReq;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by qingshengzheng on 18/8/25.
 */
@RequestMapping(value = "rule")
@Controller
@EnableAutoConfiguration
public class RuleController {

    @Resource
    private RuleService ruleService;

    /**
     * @param ruleReqCommRequest
     * @return
     */
    @RequestMapping(value = "/myrules")
    @ResponseBody
    public CommResult myrules(CommRequest<RuleReq> ruleReqCommRequest) {
       // List<Rule> rules =ruleService.listRule(ruleReqCommRequest.getData());
        return new CommResult<List>();
    }






}
